<?php

namespace app\expertReport\controller;

use app\common\controller\PCBase;
// use app\common\controller\DBase;//测试专用
use app\expertReport\logic\ExpertVideoLogic;
use app\expertReport\model\ExpertVideo as ExpertVideoModel;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class ExpertVideo extends PCBase
{
    /**
     * 模型
     * @var object
     * @phpstan-var ExpertVideoModel
     */
    protected object $model;

    public function initialize(): void
    {
        parent::initialize();
        $this->model = new ExpertVideoModel();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        $ExpertVideoLogic = new ExpertVideoLogic();
        return $ExpertVideoLogic->index($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        $ExpertVideoLogic = new ExpertVideoLogic();
        return $ExpertVideoLogic->export($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function info()
    {
        $params     = $this->request->post();
        $ExpertVideoLogic = new ExpertVideoLogic();
        return $ExpertVideoLogic->info($params);
    }

}
